package com.lifo.user.service;

import com.lifo.user.bean.model.HfGoodsFavorites;
import com.lifo.utils.Page;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Administrator on 2018/6/26.
 */
public interface HfGoodsFavoritesService {

    /**
     * 查看个人收藏
     * @param userId 用户id
     * @param startIndex 起始索引
     * @param endIndex  查询记录条数
     * @return
     */
    Page<HfGoodsFavorites> searchUserFavoritesGoods(@Param(value = "userId") int userId, @Param(value = "startIndex") int startIndex, @Param(value = "endIndex") int endIndex);


    /**
     * 保存个人收藏
     * @return
     */
    Integer saveUserFavoritesGoods(HfGoodsFavorites hfGoodsFavorites);


    /**
     * 删除个人收藏
     * @param hfGoodsFavorites
     */
    Boolean delUserFavoritesGoods(HfGoodsFavorites hfGoodsFavorites);

    public HfGoodsFavorites searchFavoritesGoodByHfGoodId(int hfGoodId,int userId);
}
